package com.nbufe.config;


import com.nbufe.service.BaseService;
import com.nbufe.service.CarbonStatisticsService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

/**
 * 启动加载
 *
 * @author luzhiheng
 * @create 2023-12-26
 */
@Component
public class DataRunner implements CommandLineRunner {

    private static final Logger LOGGER = LoggerFactory.getLogger(DataRunner.class);

    @Resource
    private BaseService baseService;

    @Resource
    private CarbonStatisticsService carbonStatisticsService;

    @Override
    public void run(String... args) {
        Long tenantId = 9999L;
//        baseService.initEmissionOriginData(tenantId);
//        baseService.initTenantData(tenantId);
    }
}
